package org.mog.music.mapper;

import entity.pojo.UserMusic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMusicMapper {
    /**
     * 添加
     *
     * @param musicId
     * @param userId
     */
    void insert(Long musicId, Long userId);

    @Select("select * from t_music_user where music_id = #{musicId} and user_id = #{userId};")
    UserMusic get(Long musicId, Long userId);
}
